﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace borkoSi.Models
{
    public class BirthdayModel
    {
    }

    public class Birthday
    {
        [Key]
        public int BirthdayId { get; set; }

        [Required(ErrorMessage = "Name is required")]
        [Display(Name = "Name")]
        [StringLength(10, ErrorMessage = "Must be under 10 char")]
        public string Name { get; set; }

        [Required(ErrorMessage = "Date is required")]
        [Display(Name = "Date")]
        //[DisplayFormat(DataFormatString = "{0:dd.MM.yyyy HH:mm}")]
        public DateTime Date { get; set; }

        public DateTime DateCreated { get; set; }
        public DateTime DateModified { get; set; }
    }
}